﻿using Dapper;
using System.Data.SqlClient;
using Xm.Entity;

namespace Xm.Models
{
    public class config_file_first_kind1
    {
       
        public async Task<int> configinsert(config_file_first_kind dz)
        {

            using var con = new SqlConnection("server=.;database=HR_DB;uid=sa;pwd=123456");

            string sql = @$"INSERT INTO config_file_first_kind VALUES({dz.first_kind_id},'{dz.first_kind_name}','{dz.first_kind_salary_id}','{dz.first_kind_sale_id}')";
            return await con.ExecuteAsync(sql);
        }
    }
}
